package com.lyd.management.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Objects;

public class Vip {
    @TableId(type= IdType.ASSIGN_UUID)
    private String vipId;
    private String userId;
    private String vipLevel;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Vip vip = (Vip) o;
        return Objects.equals(vipId, vip.vipId) && Objects.equals(userId, vip.userId) && Objects.equals(vipLevel, vip.vipLevel);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vipId, userId, vipLevel);
    }

    @Override
    public String toString() {
        return "Vip{" +
                "vipId='" + vipId + '\'' +
                ", userId='" + userId + '\'' +
                ", vipLevel='" + vipLevel + '\'' +
                '}';
    }

    public String getVipId() {
        return vipId;
    }

    public void setVipId(String vipId) {
        this.vipId = vipId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(String vipLevel) {
        this.vipLevel = vipLevel;
    }
}
